
CXXFLAGS=-I$(INCLUDE_PATH) -L$(LIB_PATH) 
LDLIBS=-pthread

PROJECT_DIR=.

all:tcpserver tcpclient

SERVER_SRC=tcpserver.cpp
SERVER_HEAD=tcpSocketInfoTool.h

tcpserver:${SERVER_SRC} ${SERVER_HEAD}
	g++ -g -o tcpserver ${SERVER_SRC} $(CXXFLAGS) $(LDLIBS)

CLIENT_SRC=tcpclient.cpp
CLIENT_HEAD=tcpSocketInfoTool.h

tcpclient:${CLIENT_SRC} ${CLIENT_HEAD}
	g++ -g -o tcpclient ${CLIENT_SRC} $(CXXFLAGS) $(LDLIBS)

clean:
	rm -rf tcpserver tcpclient 
